<?php


namespace EchoPHP\Foundation\BootStrap;


use EchoPHP\Facades\Facade;
use EchoPHP\Foundation\Application;

/**
 * 门面模式注册
 * Class RegisterFacades
 * @package EchoPHP\Foundation\BootStrap
 */
class RegisterFacades {

    /**
     *  注册门面模式
     * @param Application $app
     */
    public function bootstrap(Application $app) {
        Facade::clearBuiltFacadeInstances();
        Facade::setFacadeApplication($app);

    }
}